package Num05_20200301;

import java.util.Scanner;

public class Num05_20200301 {
    public static void main(String[] args) {
        char grade;
        System.out.print("请输入一个0-100的分数：");
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        if(n<0 || n > 100) {
            System.out.println("学生成绩必须在[0,100]之间");
        }else{
            grade = (n<= 100 && n>=90)?'A':(n<90 && n >=60)?'B':'C';
            System.out.println("成绩为：" + grade);
        }



    }
}
